<form class="layui-form" action="" method="post" name="myform" id="myform">
	<input type="hidden" name="__token__" value="{$Request.token}" />
	<div class="manniucms-sub-content">
		<div class="row">
			<div class="col-md-9">
				<div class="layui-box">
					<fieldset class="layui-elem-field">
						<legend>图书添加</legend>
						<div class="layui-field-box">
							<div class="layui-form-item">
								<label class="layui-form-label">选择栏目</label>
								<div class="layui-input-block">
									<select name="catid" lay-verify="required">
										<option value="">请选择栏目</option>
										{$categorys}
									</select>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">图书名称</label>
								<div class="layui-input-block">
									<input type="text" name="name" id="mn_name" required  lay-verify="required" placeholder="图书名称" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">图书作者</label>
								<div class="layui-input-block">
									<input type="text" name="author" id="mn_author" required  lay-verify="required" placeholder="图书作者" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item layui-form-text">
								<label class="layui-form-label">图书简介</label>
								<div class="layui-input-block">
									<textarea name="intro" id="mn_intro" required lay-verify="required" placeholder="作品简介" class="layui-textarea" style=""></textarea>
								</div>
							</div>
							<div class="layui-form-item layui-form-text">
								<label class="layui-form-label">图书分卷</label>
								<div class="layui-input-block">
									<textarea name="volumes" id="mn_volumes" placeholder="分卷排序值|分卷名称" class="layui-textarea"></textarea>
									<div class="layui-form-mid">
										分卷排序值必须是整数且唯一，如果重复后面参数会覆盖前面参数，分卷按照分卷排序值由小到大排序，每行代表一个分卷<br />
										示例：<br />1|第一卷<br />2|第二卷<br />......
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">VIP图书</label>
								<div class="layui-input-block">
									<input type="radio" name="isvip" value="1" title="是" checked>
									<input type="radio" name="isvip" value="0" title="否">
								</div>
								<div class="layui-form-mid">【是】表示收费图书，【否】表示免费图书</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">作品状态</label>
								<div class="layui-input-block">
									<input type="radio" name="full_flag" value="1" title="完本">
									<input type="radio" name="full_flag" value="0" title="连载中" checked>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">图书状态</label>
								<div class="layui-input-block">
									<input type="radio" name="status" value="1" title="正常" checked>
									<input type="radio" name="status" value="0" title="禁用">
								</div>
							</div>
						</div>
					</fieldset>
				</div>
			</div>
			<div class="col-md-3 msc-form-side">
				<div class="layui-box">
					<fieldset class="layui-elem-field">
						<legend>基本</legend>
						<div class="layui-field-box">
							<div class="layui-form-item">
								<div class="layui-input-block">
									<div class="book-cover text-center">
										<img src="__PUBLIC__images/default_cover.jpg" id="field_cover_path">
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<fieldset class="layui-elem-field layui-field-title">
									<legend>封面地址</legend>
								</fieldset>
								<div class="layui-input-block">
									<input type="text" name="cover" id="field_cover_url" required  lay-verify="required" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<div class="layui-input-block">
									<div class="book-cover text-center">
										<button type="button" class="layui-btn" onclick="mn_upload_files('cover',1)"><i class="layui-icon">&#xe64a;</i> 上传封面图</button>
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<fieldset class="layui-elem-field layui-field-title">
									<legend>总字数</legend>
								</fieldset>
								<div class="layui-input-block">
									<input type="text" value="" class="layui-input" placeholder="无需填写，保存后系统自动计算" disabled>
								</div>
							</div>
						</div>
					</fieldset>
				</div>
			</div>
		</div>
	</div>
	<!-- 底部 -->
	<div class="manniucms-sub-footer">
		<div class="layui-box msf-box text-center">
			<div class="layui-inline">
				<button class="layui-btn" lay-submit><i class="layui-icon">&#xe60a;</i> 保存</button>
				<button type="button" class="layui-btn layui-btn-primary goback"><i class="layui-icon">&#xe603;</i> 返回</button>
			</div>
		</div>
	</div>
</form>